<template>
<div>
 {{money}}
<div>
 <button v-on:click="money++">+1</button>
 <button @click="addCMonet(2)">+2</button>
 <button @click="addCMonet(20)">+20</button>
 </div>
</div>
</template>

<script>
export default {
  data() {
    return {
    money:100
    }
  },
  methods:{
    addMoney(){
if (this.money>=200) return


this.money+=10
    },
    addCMoney(num){
      this.money+=num  
        }
    
    }

  }

</script>

<style lang="less">

</style>
